package com.myzl.coal.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.myzl.common.annotation.Excel;
import com.myzl.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户消息通知对象 t_message_notice
 *
 * @author myzl
 * @date 2023-01-11
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_message_notice")
public class MessageNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 消息源名称 */
    @Excel(name = "消息源名称")
    private String name;

    /** 消息源id */
    @Excel(name = "消息源id")
    private Long messageSourceId;

    /** 消息源类型(字典) */
    @Excel(name = "消息源类型(字典)")
    private String eventType;

    /** 用途 */
    @Excel(name = "用途")
    private String message;

    /** 0否 1是 */
    @Excel(name = "0否 1是")
    private Integer noticeStatus;

    /** 通知时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "通知时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date noticeTime;

    /** 事件id */
    @Excel(name = "事件id")
    private Long eventId;

}
